package com.sa07.db;

import java.io.Serializable;
import java.util.List;

/**
 * 数据表
 * 
 * @author Long.shangbo
 *
 * 2014-2-15 下午6:44:54
 */
public class DataTable implements Serializable{

	private static final long serialVersionUID = 332577723130755895L;

	private String[] header = null;
	
	private List<Object[]> datas = null;

	public String[] getHeader() {
		return header;
	}

	public void setHeader(String[] header) {
		this.header = header;
	}
	
	public List<Object[]> getDatas() {
		return datas;
	}
	
	public void setDatas(List<Object[]> datas) {
		this.datas = datas;
	}

	public DataTable(String[] header, List<Object[]> datas) {
		super();
		this.header = header;
		this.datas = datas;
	}

	public int size(){
		return datas == null ? 0 : datas.size();
	}

	public DataTable() {
		super();
	}
}
